<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
  </head>
  
  <body>
  <a href="action">test</a>
    <table align="center">
   		<tr>
   			<td colspan="4" align="center"><h1>常见问题检索</h1>
   		</tr>
   		<tr>
   			<td colspan="4">请输入查询关键字：<input name="keyword" type="text"/><button type="submit">查询</button><a href="AddFunctionPage.jsp">添加常见问题</a></td>
   		</tr>
   		<tr>
   			<td colspan="4" align="center" style="font-weight: bolder;">检索结果</td>
   		</tr>
    	<tr>
    		<td>编号</td>
    		<td>标题</td>
    		<td>分类</td>
    		<td>创建时间</td>
    	</tr>
    	<c:forEach var="item" items="${list }">
    		<tr>
    			<td>${item.id }</td>
    			<td>${item.title }</td>
    			<td>${item.cls.cname }</td>
    			<td>${item.createdate }</td>
    		</tr>
    	</c:forEach>
    </table>
  </body>
</html>
